﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace DiaryPlanner
{
    
    public partial class RegPost : UserControl
    {



        public Regular thisRegObject;


        public RegPost(Regular RegObject)
        {
            thisRegObject = RegObject;
            InitializeComponent();
        }

        private void RegPost_Load(object sender, EventArgs e)
        {

        }

        private void btnDelete_Click(object sender, EventArgs e)
        {

            thisRegObject.nowRegPost = this;

            RegDeleteDialog RegDeleteDialogObject = new RegDeleteDialog(thisRegObject);
            RegDeleteDialogObject.ShowDialog();
            
        }

        private void btnEdit_Click(object sender, EventArgs e)
        {
            thisRegObject.nowRegPost = this;

            RegEdit RegEditObject = new RegEdit(thisRegObject);
            RegEditObject.ShowDialog();
            
        }
        
        
    }
}
